home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / MacDP 1.3 / MacDP2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-04  |  1.3 KB  |  51 lines  |  [TEXT/CWIE]

  1. /* resource IDs of menus */
  2. #define appleID            1
  3. #define fileID            2
  4. #define editID            3
  5. #define monitorID        4
  6.  
  7. #define appleM            0
  8. #define fileM            1
  9. #define editM            2
  10. #define monitorM        3
  11.  
  12. #define fmNew            1
  13. #define fmOpen            1
  14. #define fmClose        3
  15. #define fmSave            4
  16. #define fmSaveAs        4
  17. #define fmPageSetUp    6
  18. #define fmPrint        7
  19. #define fmQuit            9
  20.  
  21. #define emUndo         1
  22. #define emCut            3
  23. #define emCopy        4
  24. #define emPaste        5
  25. #define emClear        6
  26.  
  27.  
  28. #define WarningDlg        128
  29. #define AboutDlg        129
  30.  
  31. pascal OSErr  MyHandleODoc (AppleEvent *theAppleEvent, AppleEvent *reply, long handlerRefCon);
  32. pascal OSErr  MyHandlePDoc (AppleEvent *theAppleEvent, AppleEvent *reply, long handlerRefCon);
  33. pascal OSErr  MyHandleOApp (AppleEvent *theAppleEvent, AppleEvent *reply, long handlerRefCon);
  34. pascal OSErr  MyHandleQuit (AppleEvent *theAppleEvent, AppleEvent *reply, long handlerRefcon);    
  35. OSErr    MyGotRequiredParams (AppleEvent *theAppleEvent);
  36. Boolean    AppleEventsInstalled (void);
  37.  
  38. void SetUpMenus(void);
  39. void MainEvent(void);
  40.  
  41. void DoCommand(long mResult);
  42. void DoFile(short item);
  43. void DoMouseDown(short windowPart, WindowPtr whichWindow, EventRecord *myEvent);
  44. void UpdateWindow(WindowPtr whichWindow);
  45.  
  46. void    DoClose(void);
  47. void    DoOpen( FSSpec *myFSSpec );
  48. void    OpenFile( FSSpec *myFSSpec );
  49. void    RecurseDir(long dirIDToSearch);
  50.  
  51.